import request from '@/utils/request'

// 1. 注册
export const registerApi = (data) => request.post('/user/register', data)

// 2. 登录
export const loginApi = (data) => request.post('/user/login', data)

// 3. 获取用户信息
export const getUserInfoApi = () => request('/user/currentUser')
